<?php
include('http://ietincl.ucdavis.edu/includes/head.htm');
?>
<title>IET : Link Checker (Summary)</title>
<meta name="Description" content="Information and Educational Technology website">
<meta name="Keywords" content="IET, UCDavis IET">
</head>
<body> 
<div id="page_content">
<?php
include('http://ietincl.ucdavis.edu/includes/navbar.htm');
?>
<a name = 'top'></a>
<div id="main"> 
  <div id="main_wrapper"> 
    <div id="breadcrumb"> <a href="http://iet.ucdavis.edu/">IET Home</a> : Link Checker (Summary)</div> 
    <!-- end breadcrumb --> 
    
    <h1>Summary for <? echo htmlentities($_POST['urls']); ?></h1>
		<div id="columnwrap">
		<div id="columna" class="hide">
		
		</div><!-- End columna -->
		<div id="columnb" class="content_right">
<?
	include ("htmlparser.inc");
    include ("link_utility.inc");
    include ("sitecheckr.inc");
    
    $checkr = new siteCheckr();
    
    //register all the actions with the checker; this tells it what function to run, and what function to use for the summary
    $checkr->registerAction("headerCheck		", "\$this->checkHeaderConsistency(\$parser, \$main_url);", "\$this->headerSummary();");
    $checkr->registerAction("linkCheck" 		 , "\$this->checkLinkConsistency(\$parser, \$main_url);"  , "\$this->linkSummary();");
    $checkr->registerAction("HTMLCheck" 		 , "\$this->checkValidHTML(\$parser, \$main_url);"        , "\$this->HTMLSummary();");
    $checkr->registerAction("Catalogue" 		 , "\$this->catalogueSite(\$parser, \$main_url);"         , "\$this->catalogueSummary();");
    $checkr->registerAction("domainCatalogue"    , "\$this->domainCatalogue(\$parser, \$main_url);"		  , "\$this->domainSummary();");
    $checkr->registerAction("siteMap"			 , "\$this->siteMap(\$parser, \$main_url);"				  , "\$this->siteMapSummary();");
    $checkr->registerAction("brokenLinks"        , "\$this->brokenLinks(\$parser, \$main_url);"           , "\$this->brokenLinksSummary();");
    
    //grab the action from POST
    $userAction = $_POST['selectAction'];

    //grab the URL from POST (there might be multiple URLs)
    $URLs    = $_POST['urls'];
    $URLList = explode(',', $URLs);
    
    $root  = $URLList[0];
    $other = $URLs;

    //start doing the crawling
    $checkr->go($userAction, $root, $other);
?>

		</div><!-- End columnb -->
</div><!-- End columnwrap -->
	</div><!-- end main_wrapper --> 
</div>
<!-- end main --> 

<?php
include('http://ietincl.ucdavis.edu/includes/bottomnav.htm');
?>
<!-- Footer Bar --> 
<div id="footer"> Contact: <a href="mailto:ietweb@ucdavis.edu">ietweb@ucdavis.edu</a>     
 <?php echo " - Last modified: " . date("F d, Y", getlastmod()) . "  - "; ?>
 
Copyright Regents of the University of California, 2006 </div> 
<!-- end footer --> 
<!-- End Footer Bar -->
</div>
</body>
</html>